// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'goodsId',
        footer: "Foots",
        cnName: '销售退货入库',
        name: 'sales_return_goods',
        url: "/sales_return_goods/",
        sortName: "goodsId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"goodsCode":"","goodsName":"","goodsTime":"","CustomerId":"","goodsNote":"","goodsPerson":""};
    const editFormOptions = [[{"title":"入库编号","required":true,"field":"goodsCode","type":"text"},
                               {"title":"入库名称","required":true,"field":"goodsName","type":"text"}],
                              [{"title":"入库时间","required":true,"field":"goodsTime","type":"date"},
                               {"dataKey":"客户","data":[],"title":"客户ID","required":true,"field":"CustomerId","type":"select"}],
                              [{"title":"备注","field":"goodsNote","type":"textarea"},
                               {"dataKey":"用户列表","data":[],"title":"入库人","required":true,"field":"goodsPerson","type":"select"}]];
    const searchFormFields = {"goodsCode":"","goodsName":"","goodsTime":"","CustomerId":"","goodsNote":"","goodsPerson":""};
    const searchFormOptions = [[{"title":"入库编号","field":"goodsCode","type":"="},{"title":"入库名称","field":"goodsName","type":"like"}],[{"title":"入库时间","field":"goodsTime","type":"date"},{"dataKey":"客户","data":[],"title":"客户ID","field":"CustomerId","type":"="}],[{"title":"备注","field":"goodsNote","type":"like"},{"dataKey":"用户列表","data":[],"title":"入库人","field":"goodsPerson","type":"like"}]];
    const columns = [{field:'goodsId',title:'主键ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'goodsCode',title:'入库编号',type:'string',width:110,hidden:true,require:true,align:'left'},
                       {field:'goodsName',title:'入库名称',type:'string',width:120,require:true,align:'left',sort:true},
                       {field:'goodsTime',title:'入库时间',type:'datetime',width:150,require:true,align:'left',sort:true},
                       {field:'CustomerId',title:'客户ID',type:'int',bind:{ key:'客户',data:[]},width:110,require:true,align:'left'},
                       {field:'goodsNote',title:'备注',type:'string',width:110,align:'left'},
                       {field:'goodsPerson',title:'入库人',type:'int',bind:{ key:'用户列表',data:[]},width:110,require:true,align:'left'},
                       {field:'ProductCode',title:'产品管理外键',type:'string',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}